package com.ruoyi.zsyh.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zsyh.mapper.ZsyhAfterLogisticsCompanyMapper;
import com.ruoyi.zsyh.domain.ZsyhAfterLogisticsCompany;
import com.ruoyi.zsyh.service.IZsyhAfterLogisticsCompanyService;
import com.ruoyi.common.core.text.Convert;

/**
 * 物流公司Service业务层处理
 * 
 * @author yuexl
 * @date 2022-09-13
 */
@Service
public class ZsyhAfterLogisticsCompanyServiceImpl implements IZsyhAfterLogisticsCompanyService 
{
    @Autowired
    private ZsyhAfterLogisticsCompanyMapper zsyhAfterLogisticsCompanyMapper;

    /**
     * 查询物流公司
     * 
     * @param id 物流公司ID
     * @return 物流公司
     */
    @Override
    public ZsyhAfterLogisticsCompany selectZsyhAfterLogisticsCompanyById(String id)
    {
        return zsyhAfterLogisticsCompanyMapper.selectZsyhAfterLogisticsCompanyById(id);
    }

    /**
     * 查询物流公司列表
     * 
     * @param zsyhAfterLogisticsCompany 物流公司
     * @return 物流公司
     */
    @Override
    public List<ZsyhAfterLogisticsCompany> selectZsyhAfterLogisticsCompanyList(ZsyhAfterLogisticsCompany zsyhAfterLogisticsCompany)
    {
        return zsyhAfterLogisticsCompanyMapper.selectZsyhAfterLogisticsCompanyList(zsyhAfterLogisticsCompany);
    }

    /**
     * 新增物流公司
     * 
     * @param zsyhAfterLogisticsCompany 物流公司
     * @return 结果
     */
    @Override
    public int insertZsyhAfterLogisticsCompany(ZsyhAfterLogisticsCompany zsyhAfterLogisticsCompany)
    {
        return zsyhAfterLogisticsCompanyMapper.insertZsyhAfterLogisticsCompany(zsyhAfterLogisticsCompany);
    }

    /**
     * 修改物流公司
     * 
     * @param zsyhAfterLogisticsCompany 物流公司
     * @return 结果
     */
    @Override
    public int updateZsyhAfterLogisticsCompany(ZsyhAfterLogisticsCompany zsyhAfterLogisticsCompany)
    {
        return zsyhAfterLogisticsCompanyMapper.updateZsyhAfterLogisticsCompany(zsyhAfterLogisticsCompany);
    }

    /**
     * 删除物流公司对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteZsyhAfterLogisticsCompanyByIds(String ids)
    {
        return zsyhAfterLogisticsCompanyMapper.deleteZsyhAfterLogisticsCompanyByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除物流公司信息
     * 
     * @param id 物流公司ID
     * @return 结果
     */
    @Override
    public int deleteZsyhAfterLogisticsCompanyById(String id)
    {
        return zsyhAfterLogisticsCompanyMapper.deleteZsyhAfterLogisticsCompanyById(id);
    }
}
